<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息</title>
    <style>

             /* 粉色主题 */
         body {
             font-family: Arial, sans-serif;
             background-color: #fff0f5; /* 浅粉色背景 */
             margin: 0;
             padding: 20px;
         }

        .profile-container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff; /* 白色背景 */
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
            animation: fadeIn 0.5s ease-out; /* 页面加载时淡入动画 */
        }

        .profile-container:hover {
            transform: translateY(-5px); /* 悬停时向上移动 */
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 悬停时阴影加深 */
        }

        .profile-container h1 {
            color: #e91e63; /* 粉色标题 */
            margin-top: 0;
            text-align: center;
        }

        .profile-container p {
            font-size: 1.1rem;
            color: #555;
            margin: 10px 0;
        }

        .profile-container p strong {
            color: #e91e63; /* 粉色强调文字 */
        }

        /* 按钮样式 */
        a {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #e91e63; /* 粉色背景 */
            color: #ffffff; /* 白色文字 */
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        a:hover {
            background-color: #c2185b; /* 悬停时深粉色 */
        }

        a:active {
            transform: scale(0.95); /* 点击时缩小 */
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>

</head>
<body>
<div class="profile-container">
    <h1>用户信息</h1>
    <p><strong>用户ID:</strong> <span th:text="${user.id}"></span></p>
    <p><strong>用户名:</strong> <span th:text="${user.username}"></span></p>
    <p><strong>用户昵称:</strong> <span th:text="${user.nickname}"></span></p>
    <p><strong>邮箱:</strong> <span th:text="${user.email}"></span></p>
    <p><strong>密码:</strong> <span th:text="${user.password}"></span></p>
</div>
<div th:if="${session.currentUser != null}">
    <p>欢迎, <span th:text="${session.currentUser.username}"></span>！</p>
    <a href="/logout">注销</a>
</div>
</body>
</html>